import java.util.Scanner;

public class test {
    public static int big2Int(int x ,int y){
        return x > y ? x:y;
    }
    public static double big3Double(double x,double y,double z){
        double mid = x > y ? x:y;
        return mid > z? mid:z;
    }
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = 0;
        int b = 0;
        double c = 0;
        double d = 0;
        double e = 0;
        a = scan.nextInt();
        b = scan.nextInt();
        c = scan.nextDouble();
        d = scan.nextDouble();
        e = scan.nextDouble();
        System.out.println(big2Int(a, b));
        System.out.println(big3Double(c, d, e));
    }
}
